package dilmaj.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

import dilmaj.client.AreaJDO;
import dilmaj.client.TermJDO;

public class AreaVO implements IsSerializable {
	private String caption;
	private Long id;
	
	public AreaVO(AreaJDO areaJDO) {
		id=areaJDO.getId();
		
		if (areaJDO.getCaption()==null)
			caption="";
		else
			caption=areaJDO.getCaption();
	}
	
	public AreaVO(String caption) {
		this.caption=caption;
	}
	
	public AreaVO(Long id, String caption) {
		this.id=id;
		this.caption=caption;
	}
	
	public AreaVO() {
		
	}
	
	public String getCaption() {
		return caption;
	}
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id=id;
	}
}
